package ooday01;

public class Car {
        String brand;
        String color;
        double price;
        int capacity;
        Car(){}
        Car(String brand1,String color1,double price1,int capacity1){
            this.brand=brand1;
            this.color = color1;
            this.price=price1;
            this.capacity= capacity1;
        }
        void  start(){
            System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块钱的车发动了");
        }
        void  run(){
            System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块钱的起飞了");
        }
        void stop(){
            System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块钱的车降落了");
        }
}
